/*
 * @Description: 
 * @Author: rendc
 * @Date: 2022-12-11 10:31:18
 * @LastEditors: rendc
 * @LastEditTime: 2022-12-20 09:48:39
 */
// index.js
Page({
  data: {
    imgs: [
      {
        id: "1",
        src: "https://res.youpin.mi-img.com/youpinoper/9354fb2b_21ab_41ea_8592_39d302bf431b.jpeg@base@tag=imgScale&h=320&w=750"
      },
      {
        id: "2",
        src: "https://res.youpin.mi-img.com/youpinoper/9354fb2b_21ab_41ea_8592_39d302bf431b.jpeg@base@tag=imgScale&h=320&w=750"
      },
      {
        id: "3",
        src: "https://res.youpin.mi-img.com/youpinoper/9354fb2b_21ab_41ea_8592_39d302bf431b.jpeg@base@tag=imgScale&h=320&w=750"
      },
    ],
    gridData: [
      {
        id: "gridData-1",
        text: "上新精选",
        icon: "https://img.youpin.mi-img.com/ferriswheel/p0kgmu4q3jo_22028918941626688453905.png@base@tag=imgScale&h=120&w=120",
        url: "../home/home"
      },
      {
        id: "gridData-2",
        text: "小米众筹",
        icon: "https://img.youpin.mi-img.com/ferriswheel/jqdqm5q81n8_22028918941626687376754.png@base@tag=imgScale&h=120&w=120",
        url: "../home/home"
      },
      {
        id: "gridData-3",
        text: "有品秒杀",
        icon: "https://img.youpin.mi-img.com/ferriswheel/aphcvmd2gvg_22028918941626688016327.png@base@tag=imgScale&h=120&w=120",
        url: "../home/home"
      },
      {
        id: "gridData-4",
        text: "生活优选",
        icon: "https://img.youpin.mi-img.com/ferriswheel/ea317c7c_ef18_4ee7_91ab_15fa62c72e19.png@base@tag=imgScale&h=120&w=120",
        url: "../home/home"
      },
      {
        id: "gridData-5",
        text: "小米自营",
        icon: "https://img.youpin.mi-img.com/sketch/79ca50c5_dc92_41da_bf5d_08ea24bb9652.png@base@tag=imgScale&h=120&w=120",
        url: "../home/home"
      },

    ]
  },

  onLoad () {

  },
  onShow () {
    this.getTabBar().init(0);
  },
})
